home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 40 / Issue 40.iso / pc / Tutorial / Database / add data.txt next >
Encoding:
Text File  |  2000-10-23  |  543 b   |  23 lines

  1. Add data to table
  2.  
  3. table structure:
  4.  
  5. mfg_table
  6.  
  7. COLUMN name                null?        DATA type
  8. mfgID                    not null    VARCHAR2 (10)
  9. mfgName                    not null    VARCHAR2 (25)
  10. deliverycharge                not null    NUMBER (6,2)
  11.  
  12. - This simple insert statement will add one row to the table above
  13.  
  14. INSERT INTO mfg_table
  15. VALUES ('1000', 'Audi', '600');
  16.  
  17. -----------------------------------------------------
  18. add data to table - specified columns
  19.  
  20. INSERT INTO mfg_table ('mfgID', 'mfgName')
  21. VALUES ('1000', 'Audi');
  22.  
  23. - This statement adds data to specified columns